namespace panda {
  /**
   * canvas键盘事件
   */
  export class CanvasKeyBoardEvent extends CanvasInputEvent{
    public key:string;  // 当前按下的键的ASCII字符
    public keyCode:number; // 当前按下的键的ASCII码
    public repeat:boolean; // 当前按下的键是否不停的触发

    public constructor(key:string, keyCode:number, repeat:boolean,
      altKey:boolean=false, ctrlKey:boolean=false, shiftKey:boolean = false){
      super(altKey, ctrlKey, shiftKey, EInputEventType.KEYBOARDEVENT);
      this.key = key;
      this.keyCode = keyCode;
      this.repeat = repeat;
    }
  }
}